home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Franz PD
/
Franz PD Disk #279 (1993)(Rhein-Sieg-Soft).zip
/
Franz PD Disk #279 (1993)(Rhein-Sieg-Soft).adf
/
ak_gen0-lib_V38.20.LHA
/
ak_gen0-library
/
Programmers.LHA
/
Programmers
/
Headers
/
ak_gen0_obsolete.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-17
|
7KB
|
177 lines
/* ************************************************************************ */
/* AK_GEN0_OBSOLETE_H (obsolete definitions of "ak_gen0.h") */
/* ************************************************************************ */
/* (c) 1989-93 by Andreas Ralph Kleinert. All rights reserved. */
/* COMMERCIAL USE IS NOT ALLOWED WITHOUT SPECIAL PERMISSION BY THE AUTHOR ! */
/* ************************************************************************ */
/* Version : V38.20 */
/* Last updated : 17.10.1993 */
/* Compiler : SAS/C V6.3 */
/* Compiler-Options : (smakefile) */
/* ************************************************************************ */
/* Address : Andreas R. Kleinert */
/* Grube Hohe Grethe 23 */
/* D-57074 Siegen */
/* Germany */
/* ************************************************************************ */
/* NOTE : Always make use of #pragmas, if possible and NEVER use stubs
for "ak_gen0.library", when using ANY kind of #pragmas under
SAS/C V6.00+
*/
#ifndef AK_GEN0_AK_GEN0_OBSOLETE_H
#define AK_GEN0_AK_GEN0_OBSOLETE_H
/* NOTE : You should not use the following things in new code,
because they may become FULLY obsolete in future versions.
*/
/* *************************************************** */
/* * * */
/* * OBSOLETE Defines * */
/* * * */
/* *************************************************** */
#define FIRST_SCREEN ( (struct Screen *) IntuitionBase->FirstScreen )
#define CURRENT_WINDOW ( (struct Window *) IntuitionBase->ActiveWindow )
#define CURRENT_SCREEN ( (struct Screen *) IntuitionBase->ActiveScreen )
#define CURRENT_MOUSEX ( CURRENT_WINDOW->MouseX )
#define CURRENT_MOUSEY ( CURRENT_WINDOW->MouseY )
/* Defines for "direntry[]" of AK_ReadDir() */
#define AKF_IS_FILE (FALSE) /* OBSOLETE : */
#define AKF_IS_DIR (TRUE) /* Use new function AK_GetDirList() instead. */
#define AKF_IS_VOL (1<<2) /* (Still PRIVATE flag.) */
#define AK_MAX_DOS_FILENAME_LEN (108)
#define AK_MAX_READDIR_ENTRIES (50) /* No more than 50 entries will be */
/* read (for compatibility reasons). */
/* So use "AK_GetDirList()" and */
/* "AK_FreeDirList()" instead ! */
/* NOTE :
AK_ReadDir() is OBSOLETE since V36/V37. It still works, but only is
integrated because of compatibility reasons.
Use AK_GetDirList() instead.
*/
/* *************************************************** */
/* * * */
/* * OBSOLETE Base Definitions * */
/* * * */
/* *************************************************** */
#ifndef AKG_NOBASES
struct LayersBase *LayersBase = N; /* perhaps you'll NEVER use it. */
#endif /* AKG_NOBASES */
/* *************************************************** */
/* * * */
/* * OBSOLETE MACROs * */
/* * * */
/* *************************************************** */
#define SIZE_PAL(window) (WindowLimits(window, 0, 0, 640, 256))
#define SIZE_NTSC(window) (WindowLimits(window, 0, 0, 640, 200))
#define SET_MAX (SIZE_PAL(CURRENT_WINDOW)) /* OBSOLETE */
#define MEN xMEN(im) /* OBSOLETE. */
#define ITN xITN(im) /* NOTE : Use xMEN,xITN,xSTN instead !!! */
#define STN xSTN(im)
#define MEN_2 xMEN(im2) /* OBSOLETE. */
#define ITN_2 xITN(im2) /* NOTE : Use xMEN,xITN,xSTN instead !!! */
#define STN_2 xSTN(im2)
#ifndef AKG_NOVARS
/* *************************************************** */
/* * * */
/* * OBSOLETE Variable Definitions * */
/* * * */
/* *************************************************** */
struct IntuiMessage *im = N; /* First Window */
struct Window *w = N;
struct IntuiMessage *im_2 = N; /* Second Window */
struct Window *w_2 = N;
#endif /* AKG_NOVARS */
/* *************************************************** */
/* * * */
/* * OBSOLETE Structure Definitions * */
/* * * */
/* *************************************************** */
struct AK_Requester /* structure for use with ak_gen0-requesters upto V38.20 */
{
APTR akr_APTR; /* RESERVED. ONLY FOR PRIVATE USE. */
ULONG akr_Type; /* Which type ? See flags below. DO NOT CHANGE !!! */
ULONG akr_Flags; /* PRIVATE. (up to now) */
ULONG akr_Reserved1; /* PRIVATE. (up to now) */
/* ENTRIES TO BE MODIFIED BY THE USER (BEGIN) */
APTR akr_Window; /* Pointer to User-Window or NULL (CURRENT_WINDOW). */
LONG akr_LeftEdge; /* Distance to the left border of your Screen. */
LONG akr_TopEdge; /* Distance to the top border of your Screen. */
BYTE *akr_Title; /* Pointer to title text for Window. May be NULL. */
BYTE *akr_OKText; /* Pointer to text for OK-Gadget. May be NULL. */
BYTE *akr_CancelText; /* Pointer to text for Cancel-Gadget. May be NULL. */
LONG akr_FGColor; /* Foreground color (window). Default is -1. */
LONG akr_BGColor; /* Background color (window). Default is -1. */
/* With ak_gen0-Requester only used for OK/Cancel */
/* gadgets. */
ULONG akr_Default1; /* These are values, which have different meanings */
ULONG akr_Default2; /* for different requester types. OPTIONAL. */
ULONG akr_Default3; /* See explanations below. Default is always NULL. */
/* ENTRIES TO BE MODIFIED BY THE USER (END) */
APTR akr_Tags; /* RESERVED for future expansions. Always NULL. */
/* ======================================================================= */
/* SIZE MAY GROW IN FUTURE VERSIONS. ONLY ALLOC WITH AK_AllocRequester() ! */
/* FREE WITH AK_FreeRequester(). */
/* ======================================================================= */
};
/* Meaning of the akr_Default fields :
- FileRequester (AK_REQTYPE_FILE) :
- akr_Default1 : May contain the name of a Default-Directory or NULL.
- akr_Default2 : May contain the name of a Default-File or NULL.
- akr_Default3 : Not supported yet (set to NULL).
- ModeRequester (AK_REQTYPE_MODE) :
- akr_Default1 : Not supported yet (set to NULL).
- akr_Default2 : Not supported yet (set to NULL).
- akr_Default3 : Not supported yet (set to NULL).
*/
#endif /* AK_GEN0_AK_GEN0_OBSOLETE_H */